<template>
    <div class="w err">
        <img width="100%" src="@/assets/imgs/404.94e7c552.jpg" alt="">
        <h2>5秒后进行跳转</h2>
    </div>
</template>

<script lang='ts' setup>
import { useRouter } from 'vue-router'
import { onMounted } from "vue"

const router = useRouter()
    onMounted(()=>{
        setTimeout(()=>{
            router.push('/home')
        },5000)
    })
</script>
 
<style lang = "less" scoped>
    .w{
        width: 1200px;
        margin: 0 auto;
    }
    img{
        display: block;
        width: 100%;
        height: 100%;
    }
</style>